package org.shiro.util;

import org.apache.shiro.crypto.hash.Md5Hash;
import org.apache.shiro.crypto.hash.SimpleHash;

/**
 * @author 党怡承
 * @version 1.0
 * @date 2021-04-24 8:33
 */
public class PwdUtils {
  public static String encryptPassword(String password, String salt) {
    return new SimpleHash(Md5Hash.ALGORITHM_NAME, password, salt, 5).toHex();
  }
}
